package com.atguigu.product.products.service;

import com.atguigu.product.products.controller.PmsAttrAttrgroupRelationController;
import com.atguigu.product.products.entity.PmsAttrAttrgroupRelationEntity;
import com.atguigu.product.products.entity.PmsAttrEntity;
import com.atguigu.product.products.vo.respVo.CatelogwithattrRespVo;
import com.atguigu.product.products.vo.respVo.item.SpuItemAttrGroupVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.product.products.entity.PmsAttrGroupEntity;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author qhw
 * @email qhw@gmail.com
 * @date 2021-08-03 19:57:10
 */
public interface PmsAttrGroupService extends IService<PmsAttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryCategoryId(Map<String,Object> params, Long categoryId);

    List<PmsAttrEntity>  attrRelation(Long groupId);

    PageUtils noattrRelation(Map<String,Object> params, Long groupId);

    void attrRelationDetail(List<PmsAttrAttrgroupRelationEntity> entities);

    List<CatelogwithattrRespVo> catelogIdWithattr(Long catelogId);

    List<SpuItemAttrGroupVo> queryGroupWithAttrs(Long spuId, Long catalogId);
}

